package com.hao.order.app.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author haoge
 * @version 1.0
 * @date 2023/5/23 19:10
 */
@FeignClient(value = "app-product")
public interface ProductFeign {
    @PostMapping("/api/product/decrease")
    boolean decreaseProductStock(@RequestParam Long id,@RequestParam Integer count);
}
